from rest_framework.routers import DefaultRouter
from . import views

urlpatterns= []
router =DefaultRouter()
router.register(r'areas',views.AreasViewSet,base_name='areas') # 后期因为没有用queryset设置查询集所以必须要给base_name参数传值
urlpatterns +=router.urls